projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
95caaba
)
separator: Stop setting state flags on the style context for drawing
author
Rui Matos
<tiagomatos@gmail.com>
Wed, 21 Dec 2011 15:30:28 +0000
(15:30 +0000)
committer
Rui Matos
<tiagomatos@gmail.com>
Mon, 9 Jan 2012 16:31:11 +0000
(16:31 +0000)
gtk/gtkseparator.c
patch
|
blob
|
history
diff --git
a/gtk/gtkseparator.c
b/gtk/gtkseparator.c
index f8c020216ebcc345d1de10a195efec272211f268..0ae222446c6b15b080d0c117b200d39e3a30b491 100644
(file)
--- a/
gtk/gtkseparator.c
+++ b/
gtk/gtkseparator.c
@@
-243,9
+243,6
@@
gtk_separator_draw (GtkWidget *widget,
gtk_style_context_get_padding (context, state, &padding);
- gtk_style_context_save (context);
- gtk_style_context_set_state (context, state);
-
if (private->orientation == GTK_ORIENTATION_HORIZONTAL)
{
if (wide_separators)
@@
-269,8
+266,6
@@
gtk_separator_draw (GtkWidget *widget,
(width - padding.left) / 2, height - 1);
}
- gtk_style_context_restore (context);
-
return FALSE;
}